package StringBuilder_study;

public class StringBuilder_study2 {
    public static void main(String[] args) {
        String s= "I love China";
        StringBuilder sb = new StringBuilder(s);
        //将s转化为StringBuilder类型并赋值到sb中
        System.out.println(s+'\n'+sb);
        System.out.println("============");
        String b = sb.toString();
        //将sb中的值转化为字符串赋值到b中
        System.out.println(b);
    }
}
